package com.example.ch04jdbcuser.dao;

import com.example.ch04jdbcuser.entity.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @description:
 * @author:ScorpioWang
 * @date:2021-10-31-23-26
 */

public interface UserInfoDao extends JpaRepository<UserInfo,Long> {
    @Query("select c from user_info c where c.username=?1")
    UserInfo findByUserName(String username);
}
